package com.memory.monitor.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.memory.monitor.common.DeleteRequest;
import com.memory.monitor.model.dto.area.AreaAddRequest;
import com.memory.monitor.model.dto.area.AreaQuerryRequest;
import com.memory.monitor.model.dto.area.AreaUpdateRequest;
import com.memory.monitor.model.entity.Area;
import com.memory.monitor.model.vo.AreaVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;


/**
* @author 21731
* @description 针对表【area(区域管理)】的数据库操作Service
* @createDate 2024-09-02 09:29:52
 *
 *
*/


public interface AreaService extends IService<Area> {
    /**
     * 获取area信息
     *
     * @param area
     * @return
     */
    AreaVO getAreaVO(Area area);

    /**
     * 获取area信息
     *
     * @param areaList
     * @return
     */
    List<AreaVO> getAreaVO(List<Area> areaList);

     List<AreaVO> listAreaByPage();

    /**
     * 查询条件
     *
     * @param areaQueryRequest
     * @return
     */
    QueryWrapper<Area> getQueryWrapper(AreaQuerryRequest areaQueryRequest);


    /**
     * 增加查询条件
     *
     * @param areaAddRequest
     * @return
     */
   Long addArea(AreaAddRequest areaAddRequest);

    /**
     * 更新查询条件
     *
     * @param updateRequest
     * @return
     */

    Boolean updateArea(AreaUpdateRequest updateRequest);

    /**
     * 删除查询条件
     *
     * @param deleteRequest
     * @return
     */


    Boolean deleteArea(DeleteRequest deleteRequest);

    Boolean readExcel(MultipartFile multipartFile);

    Boolean writeExcel(String path);

}
